package com.xt.service;

import com.xt.bean.Specialty;
import org.springframework.data.domain.Page;

/**
 * Created by XT on 2018/5/4.
 */
public interface SpecialtyService {
    void saveOrUpdateOne(Specialty s);

    void deleteOne(String id);

    Specialty getById(String id);

    Page<Specialty> getListByPage(int count, int pageNo, String sortDirection, String... sortField);

    Page<Specialty> getPageByNameLikeAndDepartmentId(String departmentId, String name, int count, int pageNo, String sortDirection, String... sortField);

    Page<Specialty> getPageByNameLike(String name, int count, int pageNo, String sortDirection, String... sortField);

    Page<Specialty> getPageByDepartmentId(String departmentId, int count, int pageNo, String sortDirection, String... sortField);
}
